class Challenge < ActiveRecord::Migration
  def self.up
    create_table :challenges do |t|
      t.integer :match_id
      t.integer :from_user_id
      t.integer :to_user_id
      t.integer :amount
      t.string :mode
    end
    add_index :challenges,:mode
  end

  def self.down
  end
end
